<template>
  <div>
    <h3>子组件---{{ child }}</h3>
    <!-- <button @click="fn2">子组件按钮</button> -->
  </div>
</template>

<script>
export default {
  props: {
    child: {
      type: Number
      // required: true
    }
  },
  methods: {
    // fn2() {
    //   this.$emit('click')
    // }
  }
}
</script>
